home *** CD-ROM | disk | FTP | other *** search
/ IBM InfoROM for OS/2 Beta 1995 January / IBM InfoROM for OS2 Beta 1-1995.ISO / testcert / storage / function / scsi / add / readcap.scr < prev    next >
Encoding:
Text File  |  1994-08-11  |  1005 b   |  37 lines

  1. * Reads information about the capacity of the 
  2. * logical unit. 
  3.  
  4. @THREAD READCAP.LOG
  5. @NEWALIAS SADD SCSIADD.GRA
  6. @IMPORT SCSICOM.SCR
  7. SADD DD_OPEN
  8.  
  9. * 0=Async mode, 1=Sync mode
  10. SADD SET MODE=1
  11.  
  12. * Command completion timeout (Secs)
  13. * 0=the assigned value is the default set by the driver,
  14. * -1=the assigned value is infinite.
  15. SADD SET TIMEOUT=0 
  16.  
  17. *  0 = indicates that the logical block address field
  18. *      specifies the first logical block of the range of
  19. *      logical blocks to be operated on by this command.
  20. *  1 = indicates that the logical block address field is
  21. *      a two's complement displacement.  This -ve or +ve
  22. *      displacement shall be added to the logical block
  23. *      address last accessed on the logical unit to form the
  24. *      logical block address for this command.
  25. SADD SET ADDR_MODE=0
  26.  
  27. * 32bit starting logical block addr
  28. *SADD SET LOGICAL_BLOCK_ADDR =
  29.  
  30. * Name for paramblock
  31. SADD SET LABEL = "READ CAPACITY"
  32.  
  33. SADD READCAPACITY
  34.  
  35. SADD DD_CLOSE
  36.  
  37.